/// label : "Item 2"
/// count : "count232323"
/// id : 1
/// selected : 0

class MealSpecModel {
  MealSpecModel({
    String? label,
    String? count,
    num? id,
    num? selected,
  }) {
    _label = label;
    _count = count;
    _id = id;
    _selected = selected;
  }

  MealSpecModel.fromJson(dynamic json) {
    _label = json['label'];
    _count = json['count'];
    _id = json['id'];
    _selected = json['selected'];
  }

  String? _label;
  String? _count;
  num? _id;
  num? _selected;

  num? get selected => _selected;

  set selected(num? value) {
    _selected = value;
  }

  MealSpecModel copyWith({
    String? label,
    String? count,
    num? id,
    num? selected,
  }) =>
      MealSpecModel(
        label: label ?? _label,
        count: count ?? _count,
        id: id ?? _id,
        selected: selected ?? _selected,
      );

  String? get label => _label;

  String? get count => _count;

  num? get id => _id;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['label'] = _label;
    map['count'] = _count;
    map['id'] = _id;
    map['selected'] = _selected;
    return map;
  }
}
